package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysNoticeServiceMapper;
import com.ruoyi.system.domain.SysNoticeService;
import com.ruoyi.system.service.ISysNoticeServiceService;

/**
 * 公告-客服Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-11
 */
@Service
public class SysNoticeServiceServiceImpl implements ISysNoticeServiceService 
{
    @Autowired
    private SysNoticeServiceMapper sysNoticeServiceMapper;

    /**
     * 查询公告-客服
     * 
     * @param noticeid 公告-客服主键
     * @return 公告-客服
     */
    @Override
    public SysNoticeService selectSysNoticeServiceByNoticeid(Long noticeid)
    {
        return sysNoticeServiceMapper.selectSysNoticeServiceByNoticeid(noticeid);
    }

    /**
     * 查询公告-客服列表
     * 
     * @param sysNoticeService 公告-客服
     * @return 公告-客服
     */
    @Override
    public List<SysNoticeService> selectSysNoticeServiceList(SysNoticeService sysNoticeService)
    {
        return sysNoticeServiceMapper.selectSysNoticeServiceList(sysNoticeService);
    }

    /**
     * 新增公告-客服
     * 
     * @param sysNoticeService 公告-客服
     * @return 结果
     */
    @Override
    public int insertSysNoticeService(SysNoticeService sysNoticeService)
    {
        return sysNoticeServiceMapper.insertSysNoticeService(sysNoticeService);
    }

    /**
     * 修改公告-客服
     * 
     * @param sysNoticeService 公告-客服
     * @return 结果
     */
    @Override
    public int updateSysNoticeService(SysNoticeService sysNoticeService)
    {
        return sysNoticeServiceMapper.updateSysNoticeService(sysNoticeService);
    }

    /**
     * 批量删除公告-客服
     * 
     * @param noticeids 需要删除的公告-客服主键
     * @return 结果
     */
    @Override
    public int deleteSysNoticeServiceByNoticeids(Long[] noticeids)
    {
        return sysNoticeServiceMapper.deleteSysNoticeServiceByNoticeids(noticeids);
    }

    /**
     * 删除公告-客服信息
     * 
     * @param noticeid 公告-客服主键
     * @return 结果
     */
    @Override
    public int deleteSysNoticeServiceByNoticeid(Long noticeid)
    {
        return sysNoticeServiceMapper.deleteSysNoticeServiceByNoticeid(noticeid);
    }
}
